#ifndef SESSION_H
#define SESSION_H

#include "autoload.h"
#include "room.h"

class Session
{
private:
    QString id;
    QString username;
    Room* currentRoom;
    QString rule;
public:
    void setId(QString);
    void setUser(QString);
    QString getId();
    QString getUser();
    Room* getCurrentRoom()
    {
        return currentRoom;
    }
    void setCurrenRoom(Room* r)
    {
        currentRoom = r;
    }
    void setRule(QString rule)
    {
        this->rule = rule;
    }
    QString getRule()
    {
        return rule;
    }
    Room* getRoom(int i);
    QList<Room*> roomList;
    void addRoom(Room* room);
    void cleanRooms();
    int getRoomCount();
    QBool Equals(QString);
    Session();
};

#endif // SESSION_H
